package webapp.mvc.controllers.forms;

import com.zoowii.formutils.annotations.Length;

public class UpdateShopForm {
    @Length(min = 3, max = 50)
    private String name;
    private String categoryId;
    @Length(min = 0, max = 1000, message = "联系方式最多1000字符")
    private String contact = "";
    @Length(min = 0, max = 20000)
    private String address;
    @Length(min = 0, max = 2000)
    private String description;
    @Length(min = 0, max = 255)
    private String logoUrl;
    private float discount = 0;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCategoryId() {
        return categoryId;
    }

    public void setCategoryId(String categoryId) {
        this.categoryId = categoryId;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getLogoUrl() {
        return logoUrl;
    }

    public void setLogoUrl(String logoUrl) {
        this.logoUrl = logoUrl;
    }

    public String getContact() {
        return contact;
    }

    public void setContact(String contact) {
        this.contact = contact;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public float getDiscount() {
        return discount;
    }

    public void setDiscount(float discount) {
        this.discount = discount;
    }
}
